<?php
//临时跳转六道轮回
include 'common.php';
include 'lunar.php';
$fxcode = $_GET['fxcode']??null;
$result = base64_decode($fxcode);
parse_str($result,$arry);
//var_export($arry);
$xing = $arry['xing']??null;//姓
$username= $arry['username']??null;//用户名
$gender = $arry['gender']==1?'男主':'女主';//性别,1男，0女
$gongli = $arry['y'].'年'.$arry['m'].'月'.$arry['d'].'日';//公历出生日期
$lunar = new Lunar();       // 实例化类
$mid_ymd = $lunar->S2L($arry['y'].'-'.$arry['m'].'-'.$arry['d']);
$nongli = date("Y年m月d日",$mid_ymd);//农历出生日期
$nongli_chinese = $lunar->LMonName(intval(date('m',$mid_ymd))).'月'.$lunar->LDayName(intval(date('d',$mid_ymd)));//农历月日中文
$xingzuo = getConstellation($arry['m'], $arry['d']);//获取对应星座
$weeknum = getWeekNum($arry['y'].'-'.$arry['m'].'-'.$arry['d']);//获取星期几
$shengchen_arr = explode('-',$arry['lDate']);//生辰天干地支
$shengchen_start = getChineseStartTime($shengchen_arr[0]);
$shengchen_end = getChineseEndTime($shengchen_arr[1]);

$shengchen = $shengchen_arr[2];
$shengxiao = getShuXiang(date('Y',$lunar->S2L($arry['y'].'-'.$arry['m'].'-'.$arry['d'])));//获取生肖

//签文解析
$qid = $_GET['qid']??1;
$qxmfx_info =include 'qxmfx.php';
//var_export($qxmfx_info);
$show_title = "前世今生";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0">
<link rel="icon" href="http://storage-wechat-app.oss-cn-shenzhen.aliyuncs.com/wish/paseLife/favicon.ico">
<title><?php echo $show_title;?></title>
<link href="/statics/wish/paseLife/css/paseLife.7f92f33e.css" rel="preload" as="style">
<link href="/statics/wish/paseLife/css/paseLife.7f92f33e.css" rel="stylesheet">
<link href="/statics/wish/paseLife/js/chunk-vendors.8e0d8f1a.js" rel="preload" as="script">
<link href="/statics/wish/paseLife/js/paseLife.26a64a32.js" rel="preload" as="script">
</head>
<body>
	<noscript>&lt;strong&gt;We're sorry but vue-cli3-demo doesn't work
		properly without JavaScript enabled. Please enable it to
		continue.&lt;/strong&gt;</noscript>
	<div id="app">
		<div data-v-5d71a960="" id="show">
			<img data-v-5d71a960="" src="/statics/wish/paseLife/images/qsjs_top.png?imageslim" onclick="return false;">
			<div data-v-5d71a960="" class="showPayMain pastLife">
				<div data-v-5d71a960="" class="info">
					<div data-v-5d71a960="" class="fl bir_img">
						<img data-v-5d71a960="" src="/statics/wish/paseLife/images/showPayTop3.png?imageslim" onclick="return false;">
						<p data-v-5d71a960="">
							<?php echo $gender;?><br data-v-5d71a960="">资料
						</p>
					</div>					
					<div data-v-5d71a960="" class="fr user-info">
						<ul data-v-5d71a960="">
							<li data-v-5d71a960=""><span data-v-5d71a960=""
								class="color_fate">姓名：</span> <?php echo $xing.$username;?>&nbsp;&nbsp;<?php echo $xingzuo;?></li>
							<li data-v-5d71a960=""><span data-v-5d71a960=""
								class="color_fate">公历：</span><?php echo $gongli;?>(<?php echo $weeknum;?>)</li>
							<li data-v-5d71a960=""><span data-v-5d71a960=""
								class="color_fate">农历：</span><?php echo $nongli;?>(<?php echo $nongli_chinese;?>)</li>
							<li data-v-5d71a960="">
							<span data-v-5d71a960="" class="color_fate">生辰：</span><?php echo $shengchen;?>
							</li>
						</ul>
					</div>
					<div data-v-5d71a960="" class="clear"></div>
				</div>
				<div data-v-5d71a960="">
					<div data-v-5d71a960="" class="result_list">
						<h3 data-v-5d71a960="" style="margin-bottom: 8px;">
							<img data-v-5d71a960="" src="/statics/wish/paseLife/images/qsjs_6.png?imageslim" onclick="return false;">前世轮回
						</h3>
						<div data-v-5d71a960="" class="contentMain">
							<p data-v-5d71a960="">前世：<?php echo $qxmfx_info['qianshi']['title'];?></p>
							<p data-v-5d71a960="">描述：<?php echo $qxmfx_info['qianshi']['desc'];?></p>
							<p data-v-5d71a960=""><?php echo $qxmfx_info['qianshi']['qianshi'];?></p>
							<p data-v-5d71a960="">影响：<?php echo $qxmfx_info['qianshi']['yingxiang'];?></p>
						</div>
					</div>
					<div data-v-5d71a960="" class="result_list">
						<h3 data-v-5d71a960="" style="margin-bottom: 8px;">
							<img data-v-5d71a960="" src="/statics/wish/paseLife/images/qsjs_6.png?imageslim" onclick="return false;">五行属性
						</h3>
						<div data-v-5d71a960="" class="contentMain">
							<p data-v-5d71a960="">
								生克：<span data-v-5d71a960=""><?php echo $qxmfx_info['jinshen']['info']['wuxing_shuxing']['shengke'];?></span>
							</p>
							<br data-v-5d71a960="">
							<p data-v-5d71a960="">之性：<?php echo $qxmfx_info['jinshen']['info']['wuxing_shuxing']['zhixing'];?></p>
							<br data-v-5d71a960="">
							<p data-v-5d71a960="">脏腑：<?php echo $qxmfx_info['jinshen']['info']['wuxing_shuxing']['zangfu'];?></p>
							<br data-v-5d71a960="">
							<p data-v-5d71a960="">行业：<?php echo $qxmfx_info['jinshen']['info']['wuxing_shuxing']['hangye'];?></p>
						</div>
					</div>
					<div data-v-5d71a960="" class="result_list">
						<h3 data-v-5d71a960="" style="margin-bottom: 8px;">
							<img data-v-5d71a960="" src="/statics/wish/paseLife/images/qsjs_6.png?imageslim" onclick="return false;">命理属性
						</h3>
						<div data-v-5d71a960="" class="contentMain">
							<p data-v-5d71a960="" style="text-indent: 2em;"><?php echo $qxmfx_info['jinshen']['info']['mingli_yue'];?></p>
							<p data-v-5d71a960="" style="text-indent: 2em;"><?php echo $qxmfx_info['jinshen']['info']['mingli_ri'];?></p>
							<p data-v-5d71a960="" style="text-indent: 2em;">
								<span data-v-5d71a960=""><?php echo $qxmfx_info['jinshen']['info']['mingli_shichen'];?></span>
							</p>
							<br data-v-5d71a960="">
							<p data-v-5d71a960="">
								三命通会：<span data-v-5d71a960=""><?php echo $qxmfx_info['jinshen']['info']['sanmingtonghui'];?></span>
							</p>
							<br data-v-5d71a960="">
							<p data-v-5d71a960=""><?php echo $qxmfx_info['jinshen']['info']['description'];?></p>
						</div>
					</div>
					<div data-v-5d71a960="" class="result_list">
						<h3 data-v-5d71a960="" style="margin-bottom: 8px;">
							<img data-v-5d71a960="" src="/statics/wish/paseLife/images/qsjs_6.png?imageslim" onclick="return false;">月份运势
						</h3>
						<div data-v-5d71a960="" class="contentMain">
							<?php foreach ($qxmfx_info['jinshen']['yunshi']['month_result'] as $key=>$val){?>
							<div data-v-5d71a960="">
								<p data-v-5d71a960=""><?php echo $val['start_time'];?>～ <?php echo $val['end_time'];?></p>
								<p data-v-5d71a960="">
									运气：<span data-v-5d71a960=""><?php echo $val['yun_qi'];?></span>
								</p>
								<p data-v-5d71a960="">式神："<?php echo $val['shi_shen'][0];?>",<?php echo $val['shi_shen'][1][0];?></p>
								<p data-v-5d71a960=""><?php echo $val['shi_shen'][1][1];?></p>
								<p data-v-5d71a960=""><?php echo $val['shi_shen'][1][2];?></p>
								<br data-v-5d71a960="">
							</div>
							<?php }?>
						</div>
					</div>
				</div>
			</div>
			<div data-v-3a2dc752="" data-v-5d71a960="">
				<div data-v-3a2dc752="" class="tabBlank"></div>
				<div data-v-3a2dc752="" class="tab">
					<div data-v-3a2dc752="" class="flexCenterColumn" onclick="javascript:footerTab('index')">
						<img data-v-3a2dc752="" src=""><span
							data-v-3a2dc752="" class="name">首页</span>
					</div>
					<div data-v-3a2dc752="" class="flexCenterColumn" onclick="javascript:footerTab('mine')">
						<img data-v-3a2dc752="" src=""><span
							data-v-3a2dc752="" class="name">我的</span>
					</div>
				</div>
			</div>
			<!-- <div data-v-d0aad3a6="" data-v-5d71a960="">
				<div data-v-d0aad3a6="" class="contact-us">
					<img data-v-d0aad3a6=""
						src=""
						alt=""><span data-v-d0aad3a6="">订单咨询</span>
				</div>
			</div> -->
		</div>
	</div>
	<script src="https://hm.baidu.com/hm.js?7352d3bba9eddb22fc22f61f1dcfd642"></script>
	<!-- <script src="/statics/wish/paseLife/js/chunk-vendors.8e0d8f1a.js"></script>
	<script src="/statics/wish/paseLife/js/paseLife.26a64a32.js"></script> -->
	<script>
	//底部导航栏目
	function footerTab(flag){
			switch(flag){
			case 'index'://首页
				location.href = '/'; 
				break;
			case 'mine'://我的
				location.reload();
				break;	
			}
	}
    //返回指定广告页   
    function jumpurl(url){
	    var noreferrer = true;
	    var a=document.createElement('a');
	    	a.href=url;
	    if(noreferrer) a.rel='noreferrer';
	    	a.click();
	  }
	 var isNeedReloadShare = false,lastBackIndex = 0,currentTime = new Date().getTime();		
		window.setTimeout(
			function () {
				history.pushState({}, null, window.location.href);
				window.onpopstate = function () {
					history.pushState(null, null, window.location.href);
					var currentTime2 = new Date().getTime();
					if (currentTime2 - currentTime < 500) {
						return true;
					}
					lastBackIndex++;
					//if (lastBackIndex % 2== 0 ) {
					//	location.href = "http://21.atongxin.cn/ces.html";					
					 jumpurl("/");
					//} else {
					//}
					return true;
				};
			}, 50);
	</script>
</body>
</html>